<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>02-flex-wrap</title>
    <style>
        .box {
            display: flex;
            width: 500px;
            border: red dashed 1px;
            margin-bottom: 30px;
        }

        .box-item {
            width: 100px;
            height: 100px;
            line-height: 100px;
            font-size: 50px;
            text-align: center;
            margin: 5px;
            background-color: yellow;
        }

        .box1 {
            flex-wrap: nowrap;
        }

        .box2 {
            flex-wrap: wrap;
        }

        .box3 {
            flex-wrap: wrap-reverse;
        }

    </style>
</head>
<body>
<div class="box box1">
    <div class="box-item">1</div>
    <div class="box-item">2</div>
    <div class="box-item">3</div>
    <div class="box-item">4</div>
    <div class="box-item">5</div>
    <div class="box-item">6</div>
    <div class="box-item">7</div>
</div>

<div class="box box2">
    <div class="box-item">1</div>
    <div class="box-item">2</div>
    <div class="box-item">3</div>
    <div class="box-item">4</div>
    <div class="box-item">5</div>
    <div class="box-item">6</div>
    <div class="box-item">7</div>
</div>

<div class="box box3">
    <div class="box-item">1</div>
    <div class="box-item">2</div>
    <div class="box-item">3</div>
    <div class="box-item">4</div>
    <div class="box-item">5</div>
    <div class="box-item">6</div>
    <div class="box-item">7</div>
</div>
</body>
</html>
